﻿<phone:PhoneApplicationPage
    x:Class="zhangkong.Register"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True"
    shell:SystemTray.Opacity="0"
    shell:SystemTray.ForegroundColor="Snow"
    toolkit:TiltEffect.IsTiltEnabled="True"
    >
    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardIn"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:TurnstileTransition Mode="BackwardOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:TurnstileTransition Mode="ForwardOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>


    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush ImageSource="Assets/1.jpg"></ImageBrush>
        </Grid.Background>

        <ProgressBar x:Name="ProgressBar" Visibility="Collapsed" Foreground="White" IsIndeterminate="True"></ProgressBar>

        <TextBlock Foreground="White" Margin="12,17,0,28" Text="掌控校园" Style="{StaticResource PhoneTextNormalStyle}"/>

        <TextBlock Foreground="White"  x:Name="RegisterTextBlock" Visibility="Collapsed" Margin="20,45,0,0" Height="75" VerticalAlignment="Top">
            <Run Text="注册" FontSize="60" FontWeight="Light"></Run>
            <Run Text="   Register" FontWeight="Light" FontSize="40"></Run>
        </TextBlock>

        <TextBlock x:Name="FindTextBlock" Foreground="White" Margin="20,45,0,0" Height="75" VerticalAlignment="Top">
            <Run Text="重置" FontSize="60" FontWeight="Light"></Run>
            <Run Text="   Reset" FontWeight="Light" FontSize="40"></Run>
        </TextBlock>

        <Grid Margin="0,-30,0,0">
            <Grid Height="100" VerticalAlignment="Top" Margin="20,160,20,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="0" Opacity="0.8" x:Name="Step1Grid">
                    <Grid Height="35" Width="35" HorizontalAlignment="Left">
                        <Ellipse Stroke="White" StrokeThickness="2"></Ellipse>
                        <TextBlock Foreground="White" Text="1" TextAlignment="Center" FontSize="27"></TextBlock>
                    </Grid>
                    <TextBlock Foreground="White" Text="验证信息" TextAlignment="Center" FontSize="30" Height="40"></TextBlock>
                </Grid>
                <Grid Grid.Column="1" Opacity="0.4" x:Name="Step2Grid">
                    <Grid Height="35" Width="35" HorizontalAlignment="Left">
                        <Ellipse Stroke="White" StrokeThickness="2"></Ellipse>
                        <TextBlock Foreground="White" Text="2" TextAlignment="Center" FontSize="27"></TextBlock>
                    </Grid>
                    <TextBlock Foreground="White" Text="设置密码" TextAlignment="Center" FontSize="30" Height="40"></TextBlock>
                </Grid>
            </Grid>


            <phone:Pivot Margin="12,150,12,0"  x:Name="RegisterPivot" IsLocked="True">
                <phone:PivotItem>
                    <Grid>
                        <!--下面是toast-->
                        <Grid x:Name="resetGrid" Width="200" Height="100" Margin="0,250,0,0">
                            <TextBlock x:Name="resetTextBlock"  TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                        <!--上面是toast-->
                        <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,80,0,0">
                            <Border Background="White" Opacity="0.3"></Border>
                            <TextBlock Foreground="White" Name="studentID" Height="30" Width="60" HorizontalAlignment="Center" Margin="6,0,0,0" Text="学号" TextAlignment="Center" IsHitTestVisible="False" FontSize="25" FontFamily="Arial"></TextBlock>
                            <TextBox x:Name="StudentID" Text=""  MaxLength="13" FontSize="25" Height="50" TextAlignment="Center" InputScope="Number"  Width="290" HorizontalAlignment="Center" Foreground="White" CaretBrush="White" Background="White" Style="{StaticResource SignInTextBox}" GotFocus="StudentID_GotFocus" LostFocus="StudentID_LostFocus"></TextBox>
                        </Grid>
                        <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,180,0,0">
                            <Border Background="White" Opacity="0.3"></Border>
                            <TextBlock Foreground="White" Name="id" Height="30" Width="180" HorizontalAlignment="Center" Margin="6,0,0,0" Text="身份证号" TextAlignment="Center" IsHitTestVisible="False" FontSize="25" FontFamily="Arial"></TextBlock>
                            <TextBox x:Name="ID" Text="" MaxLength="18" FontSize="25" Height="50" InputScope="Default" Width="300" HorizontalAlignment="Center" TextAlignment="Center" Foreground="White" CaretBrush="White" Background="White" Style="{StaticResource SignInTextBox}" GotFocus="ID_GotFocus" LostFocus="ID_LostFocus"></TextBox>
                        </Grid>
                        <!--<Button Click="VerifyButton_Click" Background="#50FFFFFF" Height="60" Width="360" Margin="0,280,0,0" Content="验证" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{StaticResource ButtonStyleWithNoChengeOnClick}"></Button>-->
                        <!--toast资源-->
                        <Grid.Resources>
                            <Storyboard x:Name="resetStoryBoard">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="resetGrid"
                                               Storyboard.TargetProperty="Opacity"
                                               Duration="0:0:2">
                                    <LinearDoubleKeyFrame KeyTime="0:0:0"
                                          Value="1"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:1.8"
                                          Value="0.7"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:2"
                                          Value="0"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </Grid.Resources>
                        <!--到此结束-->

                    </Grid>
                </phone:PivotItem>

                <phone:PivotItem>
                    <Grid>
                        <!--下面是toast-->
                        <Grid x:Name="confirmGrid" Width="200" Height="100" Margin="0,250,0,0">
                            <TextBlock x:Name="confirmTextBlock"  TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Grid>
                        <!--上面是toast-->
                        <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,80,0,0">
                            <Border Background="White" Opacity="0.3"></Border>
                            <TextBlock Foreground="White" Height="30" Width="120" HorizontalAlignment="Left" Margin="6,0,0,0" Text="设置密码" TextAlignment="Left" IsHitTestVisible="False" FontSize="25" FontFamily="Arial"></TextBlock>
                            <PasswordBox x:Name="PasswordBox1" Password="" FontSize="25" MaxLength="16" Height="40" Width="234" CaretBrush="White" HorizontalAlignment="Right" Style="{StaticResource MyPasswordBoxStyle}" GotFocus="PasswordBox1_OnGotFocus" LostFocus="PasswordBox1_OnLostFocus" Margin="-5,13,0,12"></PasswordBox>
                        </Grid>
                        <Grid Height="65" Width="360" VerticalAlignment="Top" Margin="0,180,0,0">
                            <Border Background="White" Opacity="0.3"></Border>
                            <TextBlock Foreground="White" Height="30" Width="120" HorizontalAlignment="Left" Margin="6,0,0,0" Text="确认密码" TextAlignment="Left" IsHitTestVisible="False" FontSize="25" FontFamily="Arial"></TextBlock>
                            <PasswordBox x:Name="PasswordBox2"  Password="" FontSize="25" MaxLength="16" Height="40" Width="234" CaretBrush="White" HorizontalAlignment="Right" Style="{StaticResource MyPasswordBoxStyle}" GotFocus="PasswordBox1_OnGotFocus" LostFocus="PasswordBox1_OnLostFocus" Margin="-5,13,0,12"></PasswordBox>
                        </Grid>
                        <!--<Button x:Name="ConfitmButton" Click="ConfirmButton_Click" Background="#50FFFFFF" Height="60" Width="360" Margin="0,280,0,0" Content="注册" HorizontalAlignment="Center" VerticalAlignment="Top" Style="{StaticResource ButtonStyleWithNoChengeOnClick}"></Button>-->
                        <!--toast资源-->
                        <Grid.Resources>
                            <Storyboard x:Name="confirmStoryBoard">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="confirmGrid"
                                               Storyboard.TargetProperty="Opacity"
                                               Duration="0:0:2">
                                    <LinearDoubleKeyFrame KeyTime="0:0:0"
                                          Value="1"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:1.8"
                                          Value="0.7"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:2"
                                          Value="0"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                            <Storyboard x:Name="confirmStoryBoard1" Completed="NavigationTo">
                                <DoubleAnimationUsingKeyFrames Storyboard.TargetName="confirmGrid"
                                               Storyboard.TargetProperty="Opacity"
                                               Duration="0:0:2">
                                    <LinearDoubleKeyFrame KeyTime="0:0:0"
                                          Value="1"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:1.8"
                                          Value="0.7"/>
                                    <LinearDoubleKeyFrame KeyTime="0:0:2"
                                          Value="0"/>
                                </DoubleAnimationUsingKeyFrames>
                            </Storyboard>
                        </Grid.Resources>
                        <!--到此结束-->
                    </Grid>
                </phone:PivotItem>

            </phone:Pivot>


        </Grid>

    </Grid>

</phone:PhoneApplicationPage>